package com.vvv.myapiclientsdk.utils;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * @author vvv
 * @date 2023-09-24 23 47
 * discription
 */
public class SignUtils {


    public static String getSign(String content, String secreteKey) {
        // 使用sha256 用来加密
        Digester digester = new Digester(DigestAlgorithm.SHA256);
        String str = content + "-" + secreteKey;
        // 返回十六进制的表示形式
        return digester.digestHex(str);
    }
}
